//
//  GYUserViewModel.h
//  GYDemo
//
//  Created by mac on 2018/3/22.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "GCBaseViewModel.h"
#import "GYUserImageTitleCell.h"

///
@interface GYTableSectionViewModel : NSObject
@property (nonatomic,strong) NSString *sectionTitle;
@property (nonatomic,assign) BOOL isHiden;
@property (nonatomic,strong) NSMutableArray *items;
-(instancetype)initWithTitle:(NSString *)title items:(NSArray *)items;
@end

///商铺基本信息
@interface GYUserCompanyBaseModel : NSObject
@property (nonatomic, strong) NSString * addr;
@property (nonatomic, strong) NSString * address;
@property (nonatomic, assign) NSInteger authtype;
@property (nonatomic, strong) NSString * bankaccount;
@property (nonatomic, strong) NSString * bankname;
@property (nonatomic, strong) NSString * businessurl;
@property (nonatomic, strong) NSString * buytypename;
@property (nonatomic, strong) NSString * companyname;
@property (nonatomic, strong) NSString * detail;
@property (nonatomic, assign) NSInteger id;
@property (nonatomic, strong) NSString * idcard;
@property (nonatomic, strong) NSString * idcardurl;
@property (nonatomic, strong) NSString * linkmobile;
@property (nonatomic, assign) NSInteger logintype;
@property (nonatomic, strong) NSString * name;
@property (nonatomic, strong) NSArray * piclist;
@property (nonatomic, strong) NSString * qq;
@property (nonatomic, strong) NSString * region;
@property (nonatomic, assign) NSInteger salecount;
@property (nonatomic, strong) NSString * saletypename;
@property (nonatomic, assign) NSInteger score;
@property (nonatomic, strong) NSString * xlevel;
@end
//用户信息
@interface GYUserModel : NSObject
@property (nonatomic, strong) NSString * loginmobile;
@property (nonatomic, assign) NSInteger logintype;
@property (nonatomic, strong) NSString * name;
@property (nonatomic, strong) NSString * qq;
@property (nonatomic, assign) NSInteger status;
@end

@interface GYUserViewModel : GCBaseViewModel
@property (nonatomic,strong) GYUserModel *userModel;
@property (nonatomic,strong) GYUserCompanyBaseModel *companyBaseModel;
@property (nonatomic,strong) NSString *userPhone;
@property (nonatomic,strong) NSString *userShopLevel;
@property(nonatomic,assign)BOOL isSuccess;
/// 0-认证用户，1-普通用户，2-异常，3-审核中，4-认证拒绝
@property (nonatomic,strong) NSString *userCompanyAuthoStatus;
//列表信息
@property (nonatomic,strong) NSMutableArray *userDetails;
+(instancetype)shareInterface;
///获取用户信息
-(void)requestUserInfo;
///用户企业认证信息
-(void)requestCompanyAuthoInfo;
///用户基本商铺信息
-(void)requestUserShopBaseInfo;
///更新基本商铺信息
-(void)requestUpdateUserShopBaseInfo:(NSMutableDictionary *)para;
///更新用户信息
-(void)requestUpdateUserInfo:(NSMutableDictionary *)para;
///修改密码
-(void)requestChangePassword:(NSMutableDictionary *)para;
///退出登录
-(void)logout;
@end
